<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>IT服务供需平台     需求呼叫信息</title>
    <s:head theme="ajax" debug="true"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/mystyle.css">
	<script type="text/javascript" language="javascript" src="css/js/callAll.js"></script>
  </head>
  
  <body>
  <div id="all" style="width: 800px;">
  	 <jsp:include page="header.jsp"></jsp:include>
  	 <div class="navigation" align="left"><table width="800px"><tr class="navigation"><td>你所在位置:<a href="gongxu/index.jsp">首页</a>><a>需求信息</a></td></tr></table></div>
  	 <div>
  	 	<s:action name="gx_callSortAll" executeResult="true"></s:action>
  	 	<div style="float: right; width: 648px; border-style: solid;border-width: 1px;">
  	 		<div class="div1">
  	 			<s:form id="search" name="search" action="gx_getcallList" namespace="/gongxu">
  	 			<table>
  	 				<tr>
  	 				<td>查询:</td>
  	 				<td><s:textfield name="txtname"/></td>
  	 				<td><img src="css/img/Search.gif" onclick="javascript:submit();" /></td>
  	 				</tr>
  	 			</table>
  	 			</s:form>
  	 		</div>
  	 		<div class="div1" >
  	 			<div style="width: 100%">
  	 				<div style="width: 100%">
	  	 			<table width="100%;" cellpadding="0" cellspacing="0">
	  	 				<tr style="background-color: #66CCFF;"><td colspan="6">需求信息
	  	 				<s:if test="callSort.callSortName==''">>全部</s:if>
	  	 				<s:else>
	  	 					<s:property value="callSort.category.cateName"/>>
	  	 					<s:property value="callSort.callSortName"/>
	  	 				</s:else>
	  	 				</td></tr>
	  	 				<tr>
							<th>呼叫类别</th>
							<th>呼叫名称</th>
							<th>登记时间</th>
							<th>结束时间</th>
							<th>登记人</th>
							<th>状态</th>
						</tr>
						<s:if test="#pager.data==null">
							<tr><td>没找到相关记录!</td></tr>
						</s:if>
	  	 				<s:iterator value="pager.data" id="p" status="p_start">
	  	 					<s:if test="#p_start.odd == true"> 
				  			<tr class="tr_odd">
				  			</s:if>
				  			<s:else>
				  			<tr class="tr_j">
				  			</s:else>
				  				<input type="hidden" id="sortname" name="sortname" value="<s:property value="callSort.callSortName"/>"/>
	  	 						<td><s:property value="callSort.callSortName"/></td>
	  	 						<td>
	  	 						<a href="gongxu/gx_getCallById.shtml?callInfo.callId=<s:property value="callId"/>">
	  	 						<s:property value="callName"/></a></td>
	  	 						<td><s:date name="logTime" format="yyyy-MM-dd HH:MM:ss"/></td>
	  	 						<td><s:date name="dueTime" format="yyyy-MM-dd HH:MM:ss"/></td>
	  	 						<td><s:property value="userInfo.userName"/></td>
	  	 						<td>
									<s:if test="state==0">
								  			进行中
								  		</s:if>
								  		<s:elseif test="state==1">
								  			已关闭
								  	</s:elseif>
								</td>
	  	 					</tr>
	  	 				</s:iterator>
	  	 			</table>
	  	 		    </div>
	  	 			<div style="width: 100%;border-style: solid;border-width: 1px;">
	  	 				<s:hidden id="pagerno" name="pager.pagerNo"></s:hidden>
	  	 				<s:hidden id="pagersize" name="pager.pagerSize"></s:hidden>
	  	 				<s:hidden id="pagercount" name="pager.pagerCount"></s:hidden>
	  	 				<table width="100%"><tr align="center"><td>
	  	 				<a href="gongxu/gx_getcallList.shtml?pager.pagerNo=1" style="font-size: 12px;">[第一页]</a>
	  	 				<a onclick="back()" style="font-size: 12px;">[上一页]</a>
	  	 				<a onclick="go()" style="font-size: 12px;">[下一页]</a>
	  	 				<a href="gongxu/gx_getcallList.shtml?pager.pagerNo=<s:property value="pager.pagerSize"/>" style="font-size: 12px;">[未页]</a>
	  	 				<span>当前<s:property value="pager.pagerNo"/>页/总<s:property value="pager.pagerSize"/>页/每页<s:property value="pager.pagerCount"/>条/共<s:property value="pager.totalSize"/>条</span>
	  	 				</td>
	  	 				<td><s:textfield id="pager" cssStyle="width:24px;" name="pager.pagerNo"></s:textfield></td>
	  	 				<td><input type="button" value="Go" onclick="to()"></td>
	  	 				</tr></table>
	  	 		   </div>	
  	 			</div>
  	 			</div>
  	 </div>
  	 
  	<div><jsp:include page="bottom.jsp"></jsp:include></div>
  </div>
  </body>
</html>
